var monk = require('monk');
var async = require('async');

// connect to mongodb 
// http://stackoverflow.com/questions/20811481/how-to-connect-to-monogodb-using-monk
// first:
// var db = monk('USERNAME:PASSWORD@localhost:27017/nodetest1');

// // second:
// var db = monk('localhost:27017/nodetest1', {
//   username : 'USERNAME',
//   password : 'PASSWORD'
// });
var db = monk('localhost:27017/test');

// find all

db.get('pay').find({},function(err,docs){
	console.log(docs);
	db.close();
});